<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo1</title>
</head>
<body>
<div id="app-4">
    <ol>
        <li v-for="(value, key, index) in datas">
            {{ parentMsg }} {{ index+1 }}. {{ key }} : {{ value }}
        </li>
        <span v-for="n in 10">{{ n }} </span>
    </ol>
    <button v-on:click="addData">addData</button>
</div>
<script src="vue.js"></script>
<script>
    var app4 = new Vue({
        el: '#app-4',
        data: {
            parentMsg:"Message",
            datas: {
                "name":"LZUGIS",
                "age":19,
                "sex":"male",
                "school":"LanZhou University"
            }
        },
        methods: {
            addData: function () {
                this.datas.school="BeiJing University"
            }
        }
    });
</script>
</body>
</html>